package com.tensquare.friend.pojo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Auther: hjk
 * @Date: 2019/6/23 11:53
 * @Description:
 */
@Data
@Entity
@Table(name = "tb_friend")
@IdClass(Friend.class)
public class Friend implements Serializable{

    @Id
    private String userId;

    @Id
    private String friendId;

    private String isLike;

    public Friend(String userId,String friendId,String isLike){
        this.userId = userId;
        this.friendId = friendId;
        this.isLike = isLike;
    }
}
